package com.stox.client.ui.javafx.chartingy.model.enumeration;

import com.stox.shared.i18n.MessageSource;


public enum BarType {
	LINE("LINE", ChartType.REGULAR),
	AREA("AREA", ChartType.REGULAR),
	HLC("HLC", ChartType.REGULAR),
	OHLC("OHLC", ChartType.REGULAR),
	CANDLESTICK("CANDLESTICK", ChartType.REGULAR),
	EQUIVOLUME("EQUIVOLUME", ChartType.EQUIVOLUME),
	POINT_AND_FIGURE("POINT_AND_FIGURE", ChartType.POINT_AND_FIGURE),
	KAGI("KAGI", ChartType.REGULAR),
	RENKO("RENKO", ChartType.REGULAR),
	HAIKIN_ASHI("HAIKIN_ASHI", ChartType.REGULAR),
	THREE_LINE_BREAK("THREE_LINE_BREAK", ChartType.REGULAR),
	WAVE("WAVE", ChartType.WAVE);

	private final ChartType chartType;
	private final String key;

	private BarType(final String key, final ChartType chartType) {
		this.chartType = chartType;
		this.key = key;
	}

	public ChartType getChartType() {
		return chartType;
	}

	public String getKey() {
		return key;
	}

	@Override
	public String toString() {
		return MessageSource.get(key);
	}

}
